Skip to content

fix: BigtableSession is never closed by Reader causing "ManagedChannel allocation site" exceptions (#2782)#2871

Closed
kolea2 wants to merge 1 commit into
googleapis:bigtable-1.xfrom
kolea2:2782-fix-1x
Closed

fix: BigtableSession is never closed by Reader causing "ManagedChannel allocation site" exceptions (#2782)#2871
kolea2 wants to merge 1 commit into
googleapis:bigtable-1.xfrom
kolea2:2782-fix-1x

Conversation

@kolea2

@kolea2 kolea2 commented Mar 5, 2021

Copy link
Copy Markdown
Contributor
  • fix: BigtableSession is never closed by Reader causing "ManagedChannel allocation site" exceptions

  • fix: BigtableSession is never closed by Reader causing "ManagedChannel allocation site" exceptions

(cherry picked from commit 5340db5)

Closes #2785

googleapis#2782)

* fix: BigtableSession is never closed by Reader causing "ManagedChannel allocation site" exceptions

* fix: BigtableSession is never closed by Reader causing "ManagedChannel allocation site" exceptions

(cherry picked from commit 5340db5)
@kolea2 kolea2 requested a review from a team March 5, 2021 20:50
@product-auto-label product-auto-label Bot added the api: bigtable Issues related to the googleapis/java-bigtable-hbase API. label Mar 5, 2021
@google-cla

google-cla Bot commented Mar 5, 2021

Copy link
Copy Markdown

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

@google-cla google-cla Bot added the cla: no This human has *not* signed the Contributor License Agreement. label Mar 5, 2021
@kolea2

kolea2 commented Mar 5, 2021

Copy link
Copy Markdown
Contributor Author

cherry pick of #2782

@kolea2 kolea2 added cla: yes This human has signed the Contributor License Agreement. and removed cla: no This human has *not* signed the Contributor License Agreement. labels Mar 5, 2021
if (session != null) {
session.close();
session = null;
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont think we can do this due to channel pool caching

@kolea2 kolea2 closed this Mar 8, 2021
@kolea2 kolea2 deleted the 2782-fix-1x branch March 8, 2021 16:49
baeminbo added a commit to baeminbo/java-bigtable-hbase that referenced this pull request Dec 12, 2022
* Reader.close(): fixes googleapis#2658 where original fix googleapis#2782 was rolled back by googleapis#2871 and googleapis#2873. As we don’t use “session” here anymore, I believe we should close “connection” here.
* AbstractCloudBigtableTableDoFn.tearDown(): If an exception happened in ProcessElement, FinishBundle is not executed. We should clean up resources in TearDown. You can see the similar code with BigQueryIO apache/beam#14949.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigtable Issues related to the googleapis/java-bigtable-hbase API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants